﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SolutionBLL;
using SolutionModel;
using SFast;

public partial class admin_Dialog_List : System.Web.UI.Page
{

    protected bool Show = true;
    protected int ShowDeth = 0; //加载时默认显示某一级分类

    protected void Page_Load(object sender, EventArgs e)
    {
        Show = Request.QueryString["show"] == "false" ? false : true;  //true 时显示根目录 ，false不显示         

        string act = Request.QueryString["act"];
        switch (act)
        {
            case "menualllist":  //菜单分类
                String cid = Request.QueryString["cid"]._HasVal("0");
                BindMenuList(0, 0, cid);
                break;
            default:
                break;
        }
    }

    /// <summary>
    /// 显示菜单
    /// </summary>
    /// <param name="MinDepth">最小深度</param>
    /// <param name="MaxDepth">最大深度</param>
    /// <param name="cid">当前分类</param>
    public void BindMenuList(int MinDepth, int MaxDepth,string cid)
    {
        T_MenuBLL bll = new T_MenuBLL();
        //List<TreeGridModel> list = bll.GetTree(MinDepth, MaxDepth);  //获取所有树信息

        //rpTreeList.DataSource = list.Where(o => !("|"+ o.C_Path + "|").Contains("|" + cid + "|")); //筛选，不显示当然分类以及所有子分类
        //rpTreeList.DataBind();
    }
}